#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "system.h"
#include "image_set.h"
#include "image_c3100.h"
#include "e300_config.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void get_image_msg(image_message_t data);
    void on_pushButton_tab1_choose_clicked();

    void on_pushButton_tab1_save_clicked();

    void on_buttonBox_clicked(QAbstractButton *button);

    void on_pushButton_text2GBK_clicked();

    void on_pushButton_GBK2text_clicked();

    void on_pushButton_red_clicked();

    void on_pushButton_green_clicked();

    void on_pushButton_blue_clicked();

    void on_pushButton_white_clicked();

    void on_pushButton_save_patch_clicked();

    void on_pushButton_white_plus_clicked();
    void on_pushButton_creat_bin_clicked();

    void on_pushButton_creat_illegal_words_clicked();

    void on_pushButton48x16_clicked();

private:
    Ui::MainWindow *ui;

    void ui_init();
    void image_c3100_init();
    QString gbk2utf8(QByteArray array);
};
#endif // MAINWINDOW_H
